package org.yufan.rpc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.yufan.bean.Item;
import org.yufan.mapper.ItemMapper;
import org.yufan.rpc.service.ItemRpcService;

/**
 * Created by zxd on 2018/4/3.
 */
public class ItemRpcServiceImpl implements ItemRpcService{

    @Autowired
    private ItemMapper itemMapper;

    @Override
    public Item queryItemById(Long itemId) {
        return itemMapper.selectByPrimaryKey(itemId);
    }



}
